﻿using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class LoverHeightMapper : IDataMapper<LoverHeight>
    {
        public LoverHeight GetData(IDataReader reader)
        {
            var entity = new LoverHeight
            {
                Id = int.Parse(reader["LoverHeightId"].ToString()),
                Description = reader["LoverHeightDescription"].ToString()
            };
            return entity;
        }

        public void SetParameter(SqlCommand command, LoverHeight entity)
        {
            throw new System.NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new System.NotImplementedException();
        }
    }
}
